<?php
# $Id$
require_once(APP_LIB_DIR . 'Sajax.php');
require_once('utils.inc.php');
$poll_id = $template['id'];
$list = $template['list'];
$detail = $template['detail'];


require_once('header_nomenu.php');
?>
<script language="JavaScript" type="text/javascript">

</script>
<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/structure2.css" type="text/css" />
<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/form2.css" type="text/css" />
<!--<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/theme2.css" type="text/css" />-->
<table width="100%" class="menubar" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td class="menudottedline" width="40%">
            <div class="pathway"><font size="2px" color="#000033"><b><?=$config['version']?></b></font></div>
        </td>
        <td class="menudottedline" align="right">
            <table cellpadding="0" cellspacing="0" border="0" id="toolbar">
                <tr height="60" valign="middle" align="center">
                    <td>
                        <a class="toolbar" href="#">
                        <img src="<?=WEB_MODULE_DIR?>images/help_f2.png"
                             align="middle" name="new" border="0"><br>Help
                        </a>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<br>
<br>
<div align="center" class="centermain">
    <div class="main">
        <table class="adminheading">
            <tr>
                <th class="cpanel" rowspan="2" nowrap>Voters List &nbsp;<font size="1px" color="#CCCCCC">[<?=strtoupper($auth['privilege'])?>]</font></th>
            </tr>
        </table>
    </div>
        <table class="adminform">
            <tr>
                <th class="title">:: RESULTS</th>
            </tr>
            <tr>
              <td>
                      <div id="thetable">
                        <img src="/mcs/modpub/images/loading_small.gif"/>
                      </div>
              </td>
        </tr>
        </table>

       <table class='adminlist'>
           <thead>
                <tr>
                    <th>Mobile No.</th>
                    <th>Name</th>
                </tr>
            </thead>
                <? if ($list) foreach($list as $idx  => $l): 
                     $cls = ($idx%2 == 0) ? "" : "odd";
                ?>
                <tr class="<?=$cls?>">
                    <td><?=$l['msisdn']?></td>
                    <td><?=$l['name']?></td>
                </tr>
                <? endforeach ?>
            <tbody>
            </tbody>

        </table>
<?php require_once('footer.php'); ?>

